import 'package:json_annotation/json_annotation.dart';

part 'envir.g.dart';

@JsonSerializable()
class Envir{
  String explain;
  String itemContent;
  String pic;
  String standardContent;
  int status;

  Envir(this.explain, this.itemContent, this.pic, this.standardContent,
      this.status);

  Envir.empty();

  //不同的类使用不同的mixin即可
  factory Envir.fromJson(Map<String, dynamic> json) => _$EnvirFromJson(json);

  Map<String, dynamic> toJson() => _$EnvirToJson(this);
}